import React, { Component } from 'react'
import RouterView from '../router/RouterView'
import RouterLink from "../router/RouterLink"

export class Home extends Component {
  render() {
    const {routerConfig }=this.props
    return (
      <div className='App'>
        <header>
          这是一级路由
        </header>
         <main>
             <RouterView routerConfig={routerConfig} ></RouterView>
         </main>
        <footer>
             <RouterLink routerConfig={routerConfig}  ></RouterLink>
        </footer>
     
      </div>
    
        
        
     
    )
  }
}

export default Home